#!/bin/bash



COMAND_DB='sqlite3 /usr/share/zaitan/zaitan.db'
MOD_ENGINE='null'
MOD_CATEGOY='null'
MOD_SUBCATEGOY='null'
MOD_NAME='null'
MOD_AUTHO='Zaitan Team'
MOD_VESION='null'
MOD_DESCIPTION='null'
FILE_NAME=$($COMAND_DB "SELECT fn1 FROM file_name WHERE id=$1")
MOD_URL=$($COMAND_DB "SELECT url1 FROM urls WHERE id=$1")

# install Fostwie

echo unning $MOD_NAME...


cd /usr/share/zaitan
wget -c "$MOD_URL""$FILE_NAME"
dpkg -i "$FILE_NAME"
apt-get -f install

echo $MOD_NAME Finibashed...

##Logs
echo $MOD_NAME-$MOD_VESION | tee -a /usr/share/zaitan/logs
/us/share/modules/mod-logs
##

exit 0

